package com.egao.common.module.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 学院
 * @author lym
 */
@ApiModel(description = "学院")
@TableName("sys_college")
@Data
public class College implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("学历 1本科 2研究生")
    private Integer xl;

    @ApiModelProperty("学院名称")
    private String name;

    @ApiModelProperty("学院编码")
    private String code;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("添加时间")
    private Date createTime;

    @ApiModelProperty("编辑时间")
    private Date updateTime;

    @ApiModelProperty("是否删除 0否 1是")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty("专业集合")
    @TableField(exist = false)
    private List<Major> children;

    @ApiModelProperty("collegeRateId")
    @TableField(exist = false)
    private Integer collegeRateId;

    @ApiModelProperty("年份ID")
    @TableField(exist = false)
    private Integer yearId;

    @ApiModelProperty("就业率5月31日目标")
    @TableField(exist = false)
    private Integer rate5;

    @ApiModelProperty("就业率8月31日目标")
    @TableField(exist = false)
    private Integer rate8;

    @ApiModelProperty("学院编码")
    @TableField(exist = false)
    private String parentCode;

}
